<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>	
<%@ include file="/pub/headmeta.jsp" %>
</head>
<body class="edit-bgr-color">
	<div class="right-head"><span class="right-head-font">新增ADB驱动</span></div>
	<div align="center" style="width: 98%">	
		<form id="addForm" method="post" enctype="multipart/form-data">			
			<table cellpadding="5" style="width: 600px; font-size: 12px;">
				<tr>
					<td width="35%" align="right">驱动名称：</td>
					<td width="65%" align="left"><input type="text" name="driverName" id="driverName" style="width: 80%" required="required"/>&nbsp;&nbsp;<font color='red'>*</font></td>					
				</tr>
				<tr>
					<td align="right">驱动版本：</td>
					<td align="left"><input type="text" name="driverNo" id="driverNo" style="width: 80%" required="required"/>&nbsp;&nbsp;<font color='red'>*</font></td>					
				</tr>
				<tr>
					<td align="right">设备ID：</td>
					<td align="left"><input type="text" name="deviceId" id="deviceId" style="width: 80%" required="required"/>&nbsp;&nbsp;<font color='red'>*</font></td>					
				</tr>
				<tr>
					<td align="right">手机厂商ID：</td>
					<td align="left"><input type="text" name="businessId" id="businessId" style="width: 80%" required="required"/>&nbsp;&nbsp;<font color='red'>*</font></td>					
				</tr>
				<tr>
					<td align="right">驱动文件：</td>
					<td align="left"><input type="file" name="file" id="file" style="width: 80%" required="required"/>&nbsp;&nbsp;<font color='red'>*</font></td>					
				</tr>
				<tr>
					<td align="right">驱动描述：</td>
					<td align="left"><textarea name="note" id="note"  rows="6" style="width: 80%"></textarea></td>					
				</tr>
			</table>
			<div class="edit-line"></div>
			<input  type="button" class="button-1" value="新增" onclick="doAdd();"/>
			<input  type="button" class="button-1" value="重置" onclick="resetEx(this.form);"/>						
			<input  type="button" class="button-1" value="返回" onclick="back();"/>
		</form>
	</div>
</body>
</html>
<script type="text/javascript">
<!--

//新增
function doAdd() {
	if ($("#driverName").val()== ""){
		alert('驱动名称不能为空！');
		return;
	}
	if ($("#driverNo").val()== ""){
		alert('驱动版本不能为空！');
		return;
	}
	if ($("#deviceId").val()== ""){
		alert('设备ID不能为空！');
		return;
	}
	if ($("#businessId").val()== ""){
		alert('手机厂商ID不能为空！');
		return;
	}	
	if ($("#file").val() == ""){
		alert('驱动文件不能为空！');
		return;
	}	
	var form=$("#addForm");
	form.attr("action","${ctx}/adb!add.action"); 
	form.submit();	
}
//返回
function back(){
	location.href="${ctx}/adb!viewList.action";
}
//-->
</script>
